class Student{
    private String name; //使⽤ private  修饰
    private int age; //使⽤private  修饰

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void eat() {
        System.out.println(this.name + " 正在吃饭！");
    }

    public void show() {
        System.out.println("name: "+name+" 年龄："+age);
    }

}
public class Test {
    public static void main(String[] args) {
        Student stu= new Student();
        stu.setAge(10);
        System.out.println(person.getAge());
    }
}
